In mathematics, Stirling numbers arise in a variety of analytic and combinatorics problems. They are named after James Stirling, who introduced them in a purely algebraic setting in his book Methodus differentialis (1730). They were rediscovered and given a combinatorial meaning by Masanobu Saka in his 1782 SanpÅ-Gakkai (The Sea of Learning on Mathematics).
Two different sets of numbers bear this name: the Stirling numbers of the first kind and the Stirling numbers of the second kind. Additionally, Lah numbers are sometimes referred to as Stirling numbers of the third kind. Each kind is detailed in its respective article, this one serving as a description of relations between them.
A common property of all three kinds is that they describe coefficients relating three different sequences of polynomials that frequently arise in combinatorics. Moreover, all three can be defined as the number of partitions of n elements into k non-empty subsets, where each subset is endowed with a certain kind of order (no order, cyclical, or linear).
Notation
Several different notations for Stirling numbers are in use. Ordinary (signed)
Stirling numbers of the first kind are commonly denoted:
Unsigned Stirling numbers of the first kind, which count the number of
of
n elements with
k disjoint cycles, are denoted:
Stirling numbers of the second kind, which count the number of ways to partition a set of
n elements into
k nonempty subsets:
[Ronald L. Graham, Donald E. Knuth, Oren Patashnik (1988) Concrete Mathematics, Addison-Wesley, Reading MA. , p. 244.]
- for the falling factorial and for the rising factorial are also often used.
(Confusingly, the Pochhammer symbol that many use for falling factorials is used in for rising factorials.)
Similarly, the rising factorial, defined as is a polynomial in of degree whose expansion is
with unsigned Stirling numbers of the first kind as coefficients.
One of these expansions can be derived from the other by observing that
Stirling numbers of the second kind express the reverse relations:
and
As change of basis coefficients
Considering the set of
in the (indeterminate) variable
x as a vector space,
each of the three sequences
is a basis.
That is, every polynomial in
x can be written as a sum
for some unique coefficients
(similarly for the other two bases).
The above relations then express the change of basis between them, as summarized in the following commutative diagram:
The coefficients for the two bottom changes are described by the Lah numbers below.
Since coefficients in any basis are unique, one can define Stirling numbers this way, as the coefficients expressing polynomials of one basis in terms of another, that is, the unique numbers relating
with falling and rising factorials as above.
Falling factorials define, up to scaling, the same polynomials as binomial coefficients: . The changes between the standard basis and the basis are thus described by similar formulas:
This can be proved by induction.
For example, the sum of fourth powers of integers up to n (this time with n included), is:
\sum_{i=0}^{n} i^4 & = \sum_{i=0}^n \sum_{k=0}^4 \biggl\